import { createApp } from 'vue';
import App from './App.vue';
import { Button, Dialog } from 'vant';
import router from './router';
import store from './store';
import './assets/utils/rem';
import base from './assets/utils/base';

const VANTLIST = [Button, Dialog]; // 组件列表，按需引入
const app = createApp(App);
VANTLIST.forEach(ele => {
  app.component(ele.name, ele);
  app.use(ele);
});
app.use(base);
app.use(router);
app.use(store);
app.mount('#app');
